﻿using System;
using System.Collections.Generic;
using System.Text;
using RestSharp;

namespace Common.Model
{
    public class RequestModel
    {

        public RequestModel()
        {
            Parameters = new Dictionary<string, string>();
        }
        /// <summary>
        /// 请求的站点
        /// </summary>
        public string WebSide { get; set; }

        /// <summary>
        /// 请求的资源
        /// </summary>
        public string Resources { get; set; }

        /// <summary>
        /// 权限
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 请求的方法
        /// </summary>
        public Method Method { get; set; }

        /// <summary>
        /// 请求的参数
        /// </summary>

        public Dictionary<string, string> Parameters { get; set; }

        /// <summary>
        /// 请求类型【FromForm=0】【FromBody=1】
        /// </summary>
        public int FromType { get; set; } = 0;

    }
}
